package com.qfjy.homework.xuwei;

/**
 * @version : 1.0
 * @authon : xw
 * @date : 2022/11/10 19:55
 */
public class Customer {
    public static void main(String[] args) {
        //创建两个任务
        Task1 task1 = new Task1();
        Task2 task2 = new Task2();
        //创建主题
        ConcreteSubject subject = new ConcreteSubject();
        subject.addObserver(task1);
        subject.addObserver(task2);
        //进行更新通知
        subject.notifyAllObserver();
    }
}
